package model;

import model.database.Database;
import model.schedule.ScheduleExecuter;
import model.schedule.Scheduler;

public class MainModel {
	private Scheduler scheduler;
	private ScheduleExecuter scheduleExecuter;
	private Database database;

	public MainModel() {
		this.database = new Database();
		this.scheduler = new Scheduler(database);
		this.scheduleExecuter = new ScheduleExecuter(scheduler);
	}

	public void setUp() {
		this.database.connect();
		this.scheduler.run();
	}
	
	public Scheduler getScheduler() {
		return this.scheduler;
	}

	public Database getDatabase() {
		return this.database;
	}

	public ScheduleExecuter getScheduleExecuter() {
		return this.scheduleExecuter;
	}
}
